<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06_元素变换与过渡</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: red;
            margin: 100px auto 0;
            /*  过渡时间的单位为秒，
                 注意，必须写在元素本身，否则悬停时没有过渡效果*/
            transition: 3s;
        }
        div:hover {
            background-color: deepskyblue;
            /*  变换：缩放 n>1时放大n倍，n=1时大小不变，0<n<1时缩小至n倍     */
            transform: scale(2) rotate(360deg);
            border-radius: 50px;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>